package com.example.gulimall.common.service;


import com.example.gulimall.common.enums.ServiceCodeEnum;
import com.example.gulimall.common.exceptions.ApiException;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * <p>@description: security查找用户  </p>
 * <p>@author: JGD </p>
 * <p>@create: 2020/3/12 10:53 </p>
 * <p>@version : 2.0.0
 **/

public class UserDetailServiceImpl implements UserDetailsService {

    @Override
    public UserDetails loadUserByUsername(String s) throws UsernameNotFoundException {
        throw new ApiException(ServiceCodeEnum.NO_USER_DETAIL_SERVICE);
    }
}
